package me.zk.practice1.s;

/**
 * @author zhangkai
 * @date 2023/7/18 16:32
 */
public class LS_Offer_15 {

    public int hammingWeight(int n) {
        int res = 0;
        while (n != 0) {
            res+= n&1;
            n >>>=1;

        }
        return res;
    }
    public static void main(String[] args) {

        System.out.println(3>>1);
    }
}
